package com.elitedatai.mchtest.map.service;

import com.elitedatai.mchtest.map.model.dto.FlightAreaDTO;
import com.elitedatai.mchtest.map.model.dto.FlightAreaFileDTO;

import java.util.List;
import java.util.Optional;


public interface IFlightAreaFileService {

    Optional<FlightAreaFileDTO> getFlightAreaFileByFileId(String fileId);

    Long saveFlightAreaFile(FlightAreaFileDTO file);

    Long setNonLatestByWorkspaceId(String workspaceId);

    Optional<FlightAreaFileDTO> getLatestByWorkspaceId(String workspaceId);

    FlightAreaFileDTO packageFlightAreaFile(String workspaceId, List<FlightAreaDTO> flightAreas);
}
